package com.yl.module.property.domain.vo;


import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.yl.module.file.domain.vo.File2VO;
import com.yl.module.property.domain.Property;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 资产更换记录表 VO
 * @author liangjian
 * @date 2024-10-27 21:10:48
 */
@Data
@ApiModel(value = "PropertyChangeVO", description = "资产更换记录表VO")
public class PropertyChangeVO implements Serializable {
	private static final long serialVersionUID = -30573060947067311L;

    @ApiModelProperty(value = "资产更换记录表-主键id")
    private Long id;

	@ApiModelProperty(value = "资产一级分类id 来源property_type.id")
    private Integer propertyTypeId;

	@ApiModelProperty(value = "资产id 来源property.id 属于更换前的资产id")
	private Integer propertyId;

	@ApiModelProperty(value = "更换前的资产数据")
	private Property property;

	@ApiModelProperty(value = "资产id 来源property.id 属于更换后的资产id")
	private Integer propertyIdLater;

	@ApiModelProperty(value = "更换后的资产数据")
	private Property propertyLater;

	@ApiModelProperty(value = "描述")
    private String describe;

	@ApiModelProperty(value = "操作人id")
    private Long userId;

	@ApiModelProperty(value = "操作人名字")
	private String nickName;

	@ApiModelProperty(value = "更换时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime changeTime;

	@ApiModelProperty(value = "文件")
	private List<File2VO> files;
}

